<template>
  <div id="app">
    <component :is="layout">
      <router-view />
    </component>
  </div>
</template>

<script>
const defaultLayout = "DefaultLayout";
import Login from "./views/Login/Login.vue";
import DefaultLayout from "./components/Container/Layout.vue";
export default {
  components: {
    Login,
    DefaultLayout,
  },
  computed: {
    layout() {
      console.log("2222222222",this.$route.meta.layout);
      return this.$route.meta.layout || defaultLayout;
    },
  },
};
</script>
